<!DOCTYPE html>
<html lang="zh">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>JavaScript 核心语法</title>
</head>

<body>
  <script>
    a = 1;
    A = 1;
    console.log(a, A);
    a = '这是个字符串';
    console.log(a, A);
    let name = 'xbmu.edu.cn';
    const SUN = '太阳';

    bmi = 16;

    if(bmi >= 22) {
      console.log('体脂率偏高')
    } else {
      console.log('体脂率正常')
    }

    // for(let index = 0;index < 100;index++) {
    //   console.log(index)

    // }
    let index = 0
    while(index < 100) {
      console.log(index)
      index++
      if(index == 66) {
        console.log('我找到了')
        continue
      }
    }

    function sayHello(name = '小明', message = '你好') {
      console.log(name + message)
    }


  </script>
</body>

</html>
